import {requestClient} from "#/api/request";
import type {SysUserReq,SysUserResp} from "#/type/user";
import type {PageResult} from "#/type/baseBeans";

/**
 * 获取登录用户信息
 */
export async function getUserByIdApi() {
  return requestClient.get<SysUserResp>('/login-user-info');
}

export async function getUserPageApi(params: SysUserReq) {
  return requestClient.get<PageResult<SysUserResp>>('/user/page',{params});
}
